Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

methods for size and range of coords #356

Merged
merged 4 commits into from
Mar 27, 2024
Merged

methods for size and range of coords #356

merged 4 commits into from
Mar 27, 2024

Conversation

ahmadtourei
Copy link
Collaborator

@ahmadtourei ahmadtourei commented Mar 27, 2024

Description

This PR implements methods for the CoordManager class to provide information such as number of channels, number of seconds, etc., about patch's coordinates.

Checklist

I have (if applicable):

  • referenced the GitHub issue this PR closes.
  • documented the new feature with docstrings or appropriate doc page.
  • included a test. See testing guidelines.
  • your name has been added to the contributors page (docs/contributors.md).
  • added the "ready_for_review" tag once the PR is ready to be reviewed.

@ahmadtourei ahmadtourei marked this pull request as draft March 27, 2024 02:09
@ahmadtourei ahmadtourei changed the title coords_size and range methods methods for size and range of coords Mar 27, 2024
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.53%. Comparing base (2da1e43) to head (3584d10).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #356   +/-   ##
=======================================
  Coverage   99.53%   99.53%           
=======================================
  Files          94       94           
  Lines        7366     7384   +18     
=======================================
+ Hits         7332     7350   +18     
  Misses         34       34           
Flag Coverage Δ
unittests 99.53% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ahmadtourei ahmadtourei added the ready_for_review PR is ready for review label Mar 27, 2024
@ahmadtourei ahmadtourei marked this pull request as ready for review March 27, 2024 22:08
@@ -256,19 +256,19 @@ def test_size(self, coord_manager):
assert isinstance(coord_manager.size, int | np.int_)

def test_min(self, basic_coord_manager):
"""Ensure we can git min value."""
"""Ensure we can get min value."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, thanks for fixing the typos along the way ;)

@ahmadtourei
Copy link
Collaborator Author

Thanks to @d-chambers for the valuable discussions and assistance with this PR.

@ahmadtourei ahmadtourei merged commit 0d1bb0d into master Mar 27, 2024
15 checks passed
@Nik-P2 Nik-P2 deleted the patch_shortcuts branch June 6, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready_for_review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants